<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>const声明常量</title>
    <script>
      const data = 10;
      console.log(data);
      //   data = 11; //报错

      const list = [10, 20, 30];
      list[0] = 11;
      list = [11, 12, 13]; //报错
      console.log(list);
    </script>
  </head>
  <body></body>
</html>
